package kr.or.mst.takeoutnote2.image;

import java.lang.ref.WeakReference;

import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;

public class DownloadedDrawable extends ColorDrawable {
	private final WeakReference<BitmapDownloaderTask> bitmapDownloadTaskReference;
	
	public DownloadedDrawable(BitmapDownloaderTask bitmapDownloaderTask){
		super(Color.BLACK);
		bitmapDownloadTaskReference = new WeakReference<BitmapDownloaderTask>(bitmapDownloaderTask);
	}
	
	public BitmapDownloaderTask getBitmapDownloaderTask(){
		return bitmapDownloadTaskReference.get();
	}

}
